package com.xuanyue.db.xuan.core.db;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class DBMetaV2 implements Serializable{
	/**
	 */
	private static final long serialVersionUID = 1L;
	private String dataPath;
	private Map<String,TableMetaV2> tables = new HashMap<>();
	
	public String getDataPath() {
		return dataPath;
	}
	public void setDataPath(String dataPath) {
		this.dataPath = dataPath;
	}
	public Map<String, TableMetaV2> getTables() {
		return tables;
	}
	public void setTables(Map<String, TableMetaV2> tables) {
		this.tables = tables;
	}
	
	public void addTable(TableMetaV2 tm) {
		tables.put(tm.getName().toLowerCase(), tm);
	}
	
}
